import request from "@/utils/request" // 相当于前面我们封装的ajax

const api_name = "/admin/product"

export default {
  // GET /admin/product/getCategory1
  getCategory1() {
    return request.get(`${api_name}/getCategory1`)
  },
  // GET /admin/product/getCategory2/{category1Id}
  getCategory2(category1Id) {
    return request.get(`${api_name}/getCategory2/${category1Id}`)
  },
  // GET /admin/product/getCategory3/{category2Id}
  getCategory3(category2Id) {
    return request.get(`${api_name}/getCategory3/${category2Id}`)
  }
}

